/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package repstream.View;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JTextField;
import repstream.controler.Controler;

/**
 *
 * @author bu2spencer
 */
public class UrlFrame extends JDialog{
    private Controler controler;
    private JTextField fieldUrl;
    private JButton send;
    
       public UrlFrame(Controler controler){
           this.controler = controler;
            initComposants();
       }
       private void initComposants() {
        setVisible(false);
        setPreferredSize(new Dimension(260, 240));
        setTitle("Lien URL");
        setLayout(new BorderLayout());
        setResizable(false);
        setLocationRelativeTo(null);
        pack();

        fieldUrl = new JTextField();
        send = new JButton("Envoyer");
        send.addActionListener(new SendUrlListener());


        this.add(new JLabel("URL de la video"));
        this.add(fieldUrl, BorderLayout.CENTER);
        
        this.add(send, BorderLayout.SOUTH);
        validate();
    }
       class SendUrlListener implements ActionListener{
           
           public SendUrlListener(){
               
           }

        @Override
        public void actionPerformed(ActionEvent e) {
        
            }
        
        }
}
